<template>
    <div>
        <p>我是子组件</p>
        <slot :sonusername="sonusername" :heroArr="heroArr"></slot>
    </div>
</template>

<script>
export default {
    data() {
        return {
            sonusername: '刘禅',
            heroArr: ['姜维', '魏延', '张苞', '关兴']
        }
    }
}
</script>
<style scoped></style>